package com.aerozhonghuan.logisticsmall.modules.order.beans;

import java.io.Serializable;
import java.util.List;

/**
 * 描述 订单结算列表对象
 * @author zhangyonghui
 * 创建日期 2019-05-23
 */
public class OrderSettlementListBean implements Serializable {
    private int total;
    private int totalPage;
    private List<OrderSettlementBean> datalist;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<OrderSettlementBean> getDatalist() {
        return datalist;
    }

    public void setDatalist(List<OrderSettlementBean> datalist) {
        this.datalist = datalist;
    }

    @Override
    public String toString() {
        return "MessageListBean{" +
                "total=" + total +
                ", totalPage=" + totalPage +
                ", datalist=" + datalist +
                '}';
    }

    public class OrderSettlementBean implements Serializable{
        private int id;
        private int status;
        private String settleNumber;
        private BillBean bill;
        private String stationName;
        // 客户结算信息
        private CustomerBean customer;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getSettleNumber() {
            return settleNumber;
        }

        public void setSettleNumber(String settleNumber) {
            this.settleNumber = settleNumber;
        }

        public BillBean getBill() {
            return bill;
        }

        public void setBill(BillBean bill) {
            this.bill = bill;
        }

        public String getStationName() {
            return stationName;
        }

        public void setStationName(String stationName) {
            this.stationName = stationName;
        }

        public CustomerBean getCustomer() {
            return customer;
        }

        public void setCustomer(CustomerBean customer) {
            this.customer = customer;
        }

        @Override
        public String toString() {
            return "OrderSettlementBean{" +
                    "id=" + id +
                    ", status=" + status +
                    ", settleNumber='" + settleNumber + '\'' +
                    ", bill=" + bill +
                    '}';
        }
    }

    public class BillBean implements Serializable{
        private int totalPrice;
        private int totalNumber;
        private int actualPrice;
        private String stationName;
        private List<CommodityBean> plist;

        public int getTotalPrice() {
            return totalPrice;
        }

        public void setTotalPrice(int totalPrice) {
            this.totalPrice = totalPrice;
        }

        public int getTotalNumber() {
            return totalNumber;
        }

        public void setTotalNumber(int totalNumber) {
            this.totalNumber = totalNumber;
        }

        public int getActualPrice() {
            return actualPrice;
        }

        public void setActualPrice(int actualPrice) {
            this.actualPrice = actualPrice;
        }

        public String getStationName() {
            return stationName;
        }

        public void setStationName(String stationName) {
            this.stationName = stationName;
        }

        public List<CommodityBean> getPlist() {
            return plist;
        }

        public void setPlist(List<CommodityBean> plist) {
            this.plist = plist;
        }

        @Override
        public String toString() {
            return "BillBean{" +
                    "totalPrice=" + totalPrice +
                    ", actualPrice=" + actualPrice +
                    ", stationName='" + stationName + '\'' +
                    ", plist=" + plist +
                    '}';
        }
    }


    public class CommodityBean implements Serializable{
        private String baseName;
        private int price;
        private String number;
        private String image;

        public String getBaseName() {
            return baseName;
        }

        public void setBaseName(String baseName) {
            this.baseName = baseName;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        @Override
        public String toString() {
            return "CommodityListBean{" +
                    "baseName='" + baseName + '\'' +
                    ", price=" + price +
                    ", number=" + number +
                    ", image='" + image + '\'' +
                    '}';
        }
    }

    public class CustomerBean{
        private int money;
        private String createtime;

        public int getMoney() {
            return money;
        }

        public void setMoney(int money) {
            this.money = money;
        }

        public String getCreatetime() {
            return createtime;
        }

        public void setCreatetime(String createtime) {
            this.createtime = createtime;
        }

        @Override
        public String toString() {
            return "CustomerBean{" +
                    "money=" + money +
                    ", createtime='" + createtime + '\'' +
                    '}';
        }
    }
}
